AMSERVICE(8) | System Administration Commands | AMSERVICE(8) |
NAME¶
amservice - run an amanda service on a client
SYNOPSIS¶
amservice hostname auth service [-f input_file] [-o configoption]...
DESCRIPTION¶
Amservice execute an Amanda service on a client. It can be used without amanda server configuration (amanda.conf and disklist). It can be used to check communication between a server and a client. Amservice reads stdin to capture the REQ packet to send to the client.
See the amanda(8) man page for more details about Amanda.
OPTIONS¶
hostname
auth
service
-f input_file
-o configoption
EXAMPLE¶
The noop service is easy to execute because it does not require a REQ packet:
amservice hostname bsdtcp noop < /dev/null.fi
The example executes the noop service on the client using bsdtcp auth. This is useful for debugging connection problems. It print an OPTIONS line upon success.
It is more difficult to execute the selfcheck or sendsize service, as these require a valid REQ packet. If you have already uccessfully run amanda, you can find valid REQ packets in the amandad.*.debug files.
EXIT CODE¶
The exit code of amservice is one of:
0 = success
1 = error executing amandad on the client.
As amservice doesn´t parse the REP packet, it can only detect failures in executing amandad on the client. amservice can exit with value 0 even if the user is not authorized to execute the service. An error message will be printed.
SEE ALSO¶
AUTHOR¶
Jean-Louis Martineau <martineau@zmanda.com>
11/05/2009 | Amanda 2.6.1p2 |